import { createApp } from 'vue'
import App from './App.vue'
// 导入vue-router
import router from './router'

// 导入并注册 pinia
// 注：如果是 vue2 就是导入 PiniaVuePlugin vue3 就是 createPinia
import {createPinia} from 'pinia'

const app = createApp(App)
const store = createPinia()
app.use(router)
// 这里注册全局组件一定要写在 createApp(App) 后面且 .mount 前面
app.use(store)



app.mount('#app')
